package com.yyj.result;
/**
 * @Description: 自定义响应数据结构
 *              00000：表示成功
 * @author chenxingming
 * @version V1.0
 * @date 2020.05.28
 */
public enum ResultEnum {
    /**
     * 操作成功
     */
    SUCCESS("00000", "操作成功"),

    /**
     * token
     */
    TOKEN("99999", "登录失效，请重新登录"),

    /**
     * 操作失败
     */
    FAIL("10001", "执行失败"),

    PARAM_ERROR("10002", "参数错误"),

    ORG_ERROR("10003", "org未配置或配置错误"),

    LOGIN_FAIL("10004", "账号或密码错误"),

    ESIGN_FAIL("10005","e签宝调用失败"),

    FILE_NOT_EXITS("10006","文件不存在"),

    FILE_FORMAT_ERROR("10007","文件格式不正确"),

    REQUEST_LIMIT("10008","访问次数受限制,请十分钟后再尝试"),

    AUTHORIZATION_EXPIRES("10009","微信授权过期"),

    RESULT_NULL("10010","未查询到结果"),

    DUPLICATE_KEY_ERROR("10011","该项目下只能绑定唯一模板类型的合同模板");

    private final String code;
    private final String msg;
    ResultEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return msg;
    }
}

